/*
 * base_type.h
 *
 *  Created on: 2015��3��7��
 *      Author: 10071867
 */

#ifndef BASE_TYPE_H_
#define BASE_TYPE_H_
#include <string>
#include <stdio.h>
typedef unsigned int Amount;

const unsigned int BASE = 1;
const unsigned int INCH = BASE;
const unsigned int FEET = 12 * INCH;
const unsigned int YARD = 3 * FEET;
const unsigned int MILE = 1760 * YARD;

const unsigned int TSP = BASE;
const unsigned int TBSP = 3 * TSP;
const unsigned int OZ = 2 * TBSP;

inline std::string amountTostring(Amount num){
	std::string res;
	char buf[12];
	sprintf(buf, "%u", num);
	res = buf;
	return res;
}

#endif /* BASE_TYPE_H_ */
